#ifndef _RING_BUFFER_H_
#define _RING_BUFFER_H_

typedef unsigned char u8;
typedef unsigned int u32;

/* 缓冲区的长度,可以修改 */
#define BUFFER_SIZE  (16)

void initRingbuffer(void);
int wirteRingbuffer(u8* buffer, u32 len);
int readRingbuffer(u8* buffer, u32 len);
unsigned int getRingbufferValidLen(void);
void releaseRingbuffer(void);

#endif